/***
 * @file Ident.cpp
 *
 *  @Author: calle
 *  @date Apr 3, 2011
 *  
 *
 *  	
 */

#include "Ident.h"

//const Ident Ident::IDENT("Bogus");


Ident::Ident(const std::string& ident):
	m_ident(ident)
{
}


Ident::Ident(const Ident& ident):
	m_ident(ident.getIdentName())
{

}

Ident::~Ident() {

}



const std::string& Ident::getIdentName() const{
	return m_ident;
}

Ident* Ident::clone() const {
	return (new Ident(m_ident));

}

bool Ident::operator ==(const Ident & rhs) const
{
	bool ret = false;

	if( m_ident == rhs.getIdentName() )
	{
		ret = true;
	}

	return ret;

}


bool Ident::operator()(const Ident& lhs, const Ident& rhs ) const
{
	return (lhs.getIdentName() < rhs.getIdentName());

}

Ident Ident::operator=(const Ident & rhs) const
{
	return Ident(rhs);
}




